import tool from '../tool'
import util from '_util/index'
import logic from '_logic'
const store = util.store
import _ from 'lodash'

export default{
  chooseProductAttr(_this, warehouse_id,product_id){
    logic.edit.showEditPop(_this, 59, ()=> {
      let vo = util.store.get(_this, 'editVoModal');
      vo.warehouse_id = warehouse_id;
      let url = tool.getApi(_this, 'WarehouseProductAttr', 'insert');
      util.http.SR(_this, url, vo, '添加商品套餐到仓库成功!');
    },{
      warehouse_id,product_id
    });
  },
}
